﻿using System;
using System.Reflection;

namespace CH.FourBoards.LagerWalti.Persistence.Setup.Meta
{
	internal class AssemblyInfo
	{
		private readonly Assembly _assembly;

		public AssemblyInfo(Type type)
		{
			_assembly = Assembly.GetAssembly(type);
		}

		public string Name
		{
			get { return _assembly.FullName; }
		}

		public string Version
		{
			get { return _assembly.ManifestModule.ModuleVersionId.ToString(); }
		}

	}
}
